<template>
	<view>
		<view class="log">
			提币记录
		</view>
		<view class="yue">
			账户余额：123.98USDT
		</view>
		<view class="title">
			提币地址
		</view>
		<input class="input" type="text" value="" placeholder="请输入货币网址" v-model="sendData.address" />
		<view class="title">
			提币数量
		</view>
		<input class="input" type="number" value="" placeholder="需为100整数倍,最低提100个" v-model="sendData.number" />
		<view class="title">
			手续费
		</view>
		<input class="input" type="text" value="" placeholder="" v-model="sendData.fee" />
		<view class="button" @click="handleSubmit">
			提交
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				sendData: {}

			}
		},
		methods: {
			handleSubmit(e) {
				if (!this.sendData.address) {
					uni.showModal({
						content: '请输入提币地址'
					})
					return false;
				}
				if (!this.sendData.number) {
					uni.showModal({
						content: '请输入提币数量'
					})
					return false;
				}
				if (!this.sendData.fee) {
					uni.showModal({
						content: '请输入手续费'
					})
					return false;
				}
				if (this.sendData.number%100!=0) {
					uni.showModal({
						content: '提币数量应为100整数倍'
					})
					return false;
				}
				
				uni.showModal({
					content:'提交成功'
				})

			}
		}
	}
</script>

<style>
	.log {
		width: 690upx;
		height: 100upx;
		margin: 0 30upx;
		text-align: end;
		font-size: 28upx;
		line-height: 100upx;
	}

	.yue {
		width: 690upx;
		height: 100upx;
		margin: 0 30upx;
		font-size: 28upx;
		line-height: 100upx;
	}

	.title {
		margin: 10upx 30upx;
		font-size: 28upx;
		font-weight: bold;
	}

	.input {
		width: 690upx;
		height: 80upx;
		margin: 10upx 30upx;
		border: 1px solid #C3C3C3;
	}

	.button {
		width: 200upx;
		height: 80upx;
		margin: 30upx 275upx;
		text-align: center;
		font: 32upx;
		line-height: 80upx;
		background-color: #007AFF;
		color: #FFFFFF;
		border-radius: 50upx;
	}
</style>
